Ext.define('Admin.view.processdefinition.ProcessDefinitionUploadForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.processdefinition-upload-form',
    //id:'processdefinition-upload-form',
    requires: [
        'Ext.button.Button',
        'Ext.form.field.Text',
        'Ext.form.field.File',
        'Ext.form.field.HtmlEditor'
    ],

    viewModel: {type: 'process-definition-viewmodel'},
    controller: 'processdefinition',
    //cls: 'email-compose',

    layout: {
        type:'vbox',
        align:'stretch'
    },
    bodyPadding: 10,
    scrollable: true,
    defaults: {
        labelWidth: 60,
        labelSeparator: ''
    },
    items: [{
        xtype: 'filefield',
        width: 400,
        labelWidth: 80,
        name:'file',
        emptyText: 'Select an zip/bpmn/bpmn.20.xml file!', 
        fieldLabel: '上传文件:',
        labelSeparator: '',
        buttonConfig: {
            xtype: 'filebutton',
            glyph:'',
            iconCls: 'x-fa fa-cloud-upload',
            text: 'Browse'
        }
    }],
   	bbar: [{
		xtype: 'button',
		ui: 'soft-green',
		text: '上传',
		handler: 'onClickProcessDefinitionUploadFormUploadButton'
	},{
		xtype: 'button',
		ui: 'gray',
		text: '取消',
		handler: 'onClickProcessDefinitionUploadFormCancelButton'
	}]


});
